#!/bin/bash
sysctl -w vm.max_map_count=262144
chmod 777 data
docker container run --name es -d \
-p 9200:9200 -p 9300:9300 \
-v ./elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml \
-v ./jvm.options:/usr/share/elasticsearch/config/jvm.options \
-v ./ik:/usr/share/elasticsearch/plugins/ik \
-v ./data:/usr/share/elasticsearch/data \
elasticsearch:7.12.0
